package com.enbatis.mybatisplugs.service.impl;

import com.enbatis.mybatisplugs.base.BaseServiceImpl;

import com.enbatis.mybatisplugs.commons.sql.Wrapper;
import com.enbatis.mybatisplugs.entity.VegetableMenu;
import com.enbatis.mybatisplugs.mapper.VegetableMenuMapper;
import com.enbatis.mybatisplugs.plugin.Pages;
import com.enbatis.mybatisplugs.service.VegetableMenuService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* 描述：
* @author wangweidong
* @date 2019-11-27 18:25:25
*/

@Service
public class VegetableMenuServiceImpl extends BaseServiceImpl<VegetableMenuMapper,VegetableMenu > implements VegetableMenuService {


    @Override
    public Pages<VegetableMenu> pageVO(Page<VegetableMenu> page, Wrapper<VegetableMenu> vegetableMenuWrapper) {
        Page returnPage= PageHelper.startPage(page.getPageNum(),page.getPageSize(),page.getOrderBy());
        List<VegetableMenu>  list= list(vegetableMenuWrapper);


        Pages<VegetableMenu> pages=new Pages<>(returnPage);
        return pages;
    }
}
